package com.zyit.service.Impl;

import com.zyit.DataObject.T_classify;
import com.zyit.dao.T_classifyDaoSYY;
import com.zyit.service.ClassifyService;

import java.util.List;

public class ClassifyServiceImpl implements ClassifyService {
    T_classifyDaoSYY tClassifyDao = new T_classifyDaoSYY();

    @Override
    public List<T_classify> findClassify() throws Exception {

        return tClassifyDao.findClassify();
    }

    @Override
    public List<T_classify> findTypeClassify(Integer type) throws Exception {
        return tClassifyDao.findTypeClassify(type);
    }

    @Override
    public List<T_classify> findNameClassify(Integer type, Integer classify_name) throws Exception {
        return tClassifyDao.findNameClassify(type, classify_name);
    }

    @Override
    public int DeleteClassify(String id) throws Exception {
        return tClassifyDao.DeleteClassify(id);
    }

    @Override
    public List<T_classify> findIdTypeClassify(Integer id) throws Exception {
        return tClassifyDao.findIdTypeClassify(id);
    }

    @Override
    public T_classify IdTypeClassify(String id) throws Exception {
        return tClassifyDao.IdTypeClassify(id);
    }

    @Override
    public int InsertClassfiy(String classname, String parent_id, String type) throws Exception {
        return tClassifyDao.InsertClassfiy(classname, parent_id, type);
    }

    @Override
    public int UpdataClassify(String id, String parent_id, String type) throws Exception {
        return tClassifyDao.UpdataClassify(id,parent_id,type);
    }
}
